package com.example.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Lexin Huang
 * @date 2021/3/20 23:07
 */
@Configuration
public class ApplicationAutoConfiguration {
    @Bean
    @ConditionalOnMissingBean(ProjectProperties.class)
    public ProjectProperties projectProperties() {
        return new ProjectProperties();
    }

    @Bean
    @ConditionalOnMissingBean(PageSizeProperties.class)
    public PageSizeProperties pageProperties() {
        return new PageSizeProperties();
    }
}
